package homework;
import java.util.Scanner;
public class 串讲 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
       /* System.out.println("请输入月份:");
        int month = scan.nextInt();
        if (month==3 || month==4 || month==5){
            System.out.println("该季节为春季,主要活动:播种");
        }else if (month==6 || month==7 || month==8){
            System.out.println("该季节为夏季,主要活动:吃烧烤");
        }else if (month==9 || month==10 || month==11){
            System.out.println("该季节为秋季,主要活动:秋收");
        }else if (month==12 || month==1 || month==2){
            System.out.println("该季节为春季,主要活动:睡觉");
        }else {
            System.out.println("月份有误");
        }*/
        /*
        int sum = 0;
        for (int i=2;i<=100;i+=2){
            sum = sum +i;
        }
        System.out.println("sum="+sum);
        */
        int sum = 0;
        for (int i =1;i<=100;i++){
            if (i%2==0){
                sum =sum +i;
            }

        }
        System.out.println("sum="+sum);






    }
}
